package com.ergou.easylive.admin.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 缓存属性配置
 *
 * @author Er-Gou
 * @date 2025-09-17 00:15
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "cache")
public class CacheProperties {
    
    /**
     * 验证码缓存过期时间（分钟），默认5分钟
     */
    private long captchaExpireMinutes = 5;
    
    /**
     * 验证码缓存最大条目数，默认1000
     */
    private long captchaMaxSize = 1000;
    
    /**
     * 是否启用缓存统计，默认false
     */
    private boolean enableStats = false;
}
